<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import="ext.acae2.dms.web.input.UploadProcessor"%>
<%@ page import="java.util.*"%>
<%
	List<String> result = new UploadProcessor().process(request);

	StringBuffer msg = new StringBuffer();

	if (result.size() == 0) {
		out.println("<script>parent.callback('导入失败！')</script>");
	} else {
		msg.append("导入成功！");
		msg.append("\\n");
		for (int i = 0; i < result.size(); i++) {
			msg.append(result.get(i));
			if (i != result.size() - 1) {
				msg.append("\\n");
			}
		}
		out.println("<script>parent.callback('" + msg.toString()
				+ "')</script>");
	}
%>